package com.sushi.service;

import com.sushi.repository.entity.CommodityEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sushi.response.ResponseBO;
import com.sushi.response.ResponsePageBO;
import com.sushi.response.CommodityResp;
import com.sushi.request.CommodityReq;
import com.sushi.request.CommodityPageReq;

/**
 * 商品 服务类
 * @date 2023-05-02
 * @time 17:13:55
 * @author Administrator
 */
public interface CommodityService extends IService<CommodityEntity> {

    

    /**
     * 新增
     */
    public ResponseBO<CommodityResp> add(CommodityReq req);

    /**
     * 逻辑删除
     */
    public ResponseBO<CommodityResp> logicRemove(CommodityReq req);

    /**
     * 更新
     */
    public ResponseBO<CommodityResp> updateByField(CommodityReq req);

    /**
     * 列表
     */
    public ResponsePageBO<CommodityResp> listByCondition(CommodityPageReq req);

    /**
     * 详情
     */
    public ResponseBO<CommodityResp> detail(CommodityReq req);

;

}